<script>
function goToRound() {
	document.location.href = "homePage.php?round=" + document.getElementById("roundVal").options[document.getElementById("roundVal").selectedIndex].value + "#tabs-DisplayRound";
}

</script>
<br>
<br>
<br>
<table align="center" width="100%">
<?if (!isset($_GET['type'])) {?>
<tr>
			<td><select id="roundVal">
				<?if ($leagueId == 4) {?>
			    	<option value="51" <?if ($round == 51) {?>selected<?}?>>Pre Season Week1</option>
			    	<option value="53" <?if ($round == 53) {?>selected<?}?>>Pre Season Week2</option>
			    	<option value="54" <?if ($round == 53) {?>selected<?}?>>Pre Season Final</option>
			    <?} else if ($leagueId == 8) {?>
			    	<option value="1" <?if ($round == 1) {?>selected<?}?>>1</option>
			    <?}?>
				<option value="2" <?if ($round == 2) {?>selected<?}?>>2</option>
				<option value="3" <?if ($round == 3) {?>selected<?}?>>3</option>
				<option value="4" <?if ($round == 4) {?>selected<?}?>>4</option>
				<option value="5" <?if ($round == 5) {?>selected<?}?>>5</option>
				<option value="6" <?if ($round == 6) {?>selected<?}?>>6</option>
				<option value="7" <?if ($round == 7) {?>selected<?}?>>7</option>
				<option value="8" <?if ($round == 8) {?>selected<?}?>>8</option>
				<option value="9" <?if ($round == 9) {?>selected<?}?>>9</option>
				<option value="10" <?if ($round == 10) {?>selected<?}?>>10</option>
				<option value="14" <?if ($round == 14) {?>selected<?}?>>14</option>
				<option value="15" <?if ($round == 15) {?>selected<?}?>>15</option>
				<option value="16" <?if ($round == 16) {?>selected<?}?>>16</option>
				<option value="17" <?if ($round == 17) {?>selected<?}?>>17</option>
				<option value="18" <?if ($round == 18) {?>selected<?}?>>18</option>
				<option value="19" <?if ($round == 19) {?>selected<?}?>>19</option>
			</select>&nbsp;<input type="button" value="Go" onclick="goToRound()">
		</td> 
		</tr><?}?>
		<tr><td>
<?if ($round == "51") {?>
	<?php include("../html/preSeasonWeek1.htm"); ?>
<?} else if ($round == "53") {?>
	<?php include("../html/preSeasonWeek2.htm"); ?>
<?} else if ($round == "54") {?>
	<?php include("../html/preSeasonFinal.htm"); ?>	
<?} else {?>		
	<?php include("../html/round" . $round . "-" . $leagueId . ".htm"); ?>
<?}?>
</td></tr></table>
